package com.dyh.quickdemozwei.controller0824;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@RequestMapping("/bd")
@Controller
@Slf4j
public class BdController {

    @RequestMapping("/bd")
    public Object fun(HttpServletRequest request){
        log.info(JSON.toJSONString(request.getParameterMap()));

        JSONObject jo = new JSONObject();
        jo.put("xx",1);
        return jo;
    }
}
